import 'package:json_annotation/json_annotation.dart';
import 'package:u9mobile/models/filed_property.dart';

part 'area.g.dart';

@JsonSerializable()
class Area{
  @JsonKey(name: 'areaVisible',defaultValue: false)
  late bool? visible;
  late String name;
  late String position;
  late List<FieldProperty> items;
  Area(this.name,this.position,this.visible,this.items);
  factory Area.fromJson(Map<String,dynamic> json)=>_$AreaFromJson(json);
  Map<String, dynamic> toJson() => _$AreaToJson(this);
}